extract elevation using a DEM